<{include file="admin/head.html"}>
<body>
	<{include file="admin/nav.html"}>
	<div id="content">
		<div id="sidebar">
			<ul>
				<li><a href="advertise.php?do=addBanner">添加广告大图</a></li>
				<li><a href="advertise.php?do=banners">查看广告大图</a></li>
				<li><a href="advertise.php?do=addProduct">添加产品列表</a></li>
				<li><a href="advertise.php?do=product">查看产品列表</a></li>
				<li><a href="advertise.php?do=addFeatured">添加精选产品</a></li>
				<li><a href="advertise.php?do=featured">查看精选产品</a></li>
			</ul>
		</div>
		<div id="main">
			<h2 id="page_title"><{$pageTitle}></h2>
			<form action="advertise.php" method="post" enctype="multipart/form-data">
				<table class="form_table">
					<tr>
						<td>文件<span class="required">*</span>：</td>
						<td><input type="file" name="file" ></td>
					</tr>
					<tr>
						<td>链接<span class="required">*</span>：</td>
						<td><input type="text" name="link" value="<{$advinfo.link}>"></td>
					</tr>
					<tr>
						<td>描述：</td>
						<td><input type="text" name="desc" value="<{$advinfo.title}>"></td>
					</tr>
					<!-- 精选产品里的副标题 -->
					<{if $type eq 3 }>
					<tr>
						<td>副标题：</td>
						<td><input type="text" name="subtitle" value="<{$advinfo.subtitle}>"></td>
					</tr>
					<{/if}>
					<tr>
						<td>顺序：</td>
						<td><input type="text" name="order" value="<{$advinfo.order|default:1}>"></td>
					</tr>
				</table>
				<p>
					<input type="submit" name="submit" value="提交">
					<input type="hidden" name="type" value="<{$type}>">
					<input type="hidden" name="do" value="<{$do|default:'addAdv'}>">
					<{if $advinfo}>
					<input type="hidden" name="id" value="<{$advinfo.id}>">
					<{/if}>
				</p>
			</form>
		</div>
	</div>
</body>
</html>